import { request } from '@/utils/request'


//注销个人信息
export const removePerson = function () {
    return request.delete(`/person`)
}

//更新自己的个人信息
export const updatePerson = function (entity) {
    return request.put(`/person`, entity)
}

//更新自己的密码
export const changePwd = function (entity) {
    return request.put(`/person/passwd`, entity)
}

//获得个人信息
export const getPerson = function () {
    return request.get(`/person`)
}

